package com.example.administrator.ddms;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
private static final String ACTIVITY_TAG="LogDemo";
    private Button bt;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        bt = (Button) findViewById(R.id.button);
        bt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Log.v(ACTIVITY_TAG,"This is Verbose");
                Log.d(ACTIVITY_TAG,"This is Debug");
                Log.i(ACTIVITY_TAG,"This is Information");
                Log.e(ACTIVITY_TAG,"This is Error");
                Log.w(ACTIVITY_TAG,"This is Warning");
            }
        });
    }
}
